package com.maiji.cloud.entities.community;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


@NoArgsConstructor
@Data
@Accessors(chain=true)
@Table(name = "com_location_info")

public class ComLocationInfo {
    @TableId
    @Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50,isKey = true)
    private String uuId;

    @Column(name = "lon", type = MySqlTypeConstant.DOUBLE,decimalLength =16,defaultValue = "0")
    private Double lon;  // 经度

    @Column(name = "lat", type = MySqlTypeConstant.DOUBLE,decimalLength =16,  defaultValue = "0")
    private Double lat;  // 纬度

    @Column(name = "province", type = MySqlTypeConstant.VARCHAR, length = 8, defaultValue = "")
    private String province;

    @Column(name = "city", type = MySqlTypeConstant.VARCHAR, length = 8 ,defaultValue = "")
    private String city;

    @Column(name = "county", type = MySqlTypeConstant.VARCHAR, length = 8,defaultValue = "")
    private String county;

    @Column(name = "address",type = MySqlTypeConstant.VARCHAR,length = 254)
    private String address;

    @Column(name="city_code",type = MySqlTypeConstant.VARCHAR,length = 8,defaultValue = "")
    private String cityCode; //城市code

    @Column(name="ad_code",type = MySqlTypeConstant.VARCHAR,length = 8,defaultValue = "")
    private String adCode; //区县code

}
